<?php
/**** Message ****/
echo $this->Session->flash();
?>

<div class="render_auto_margin">

	<div class="row uploadcontent ac mt40">
		<?php echo $form->create('MAvoidanceWord', array('type' => 'file','class'=>'formfileupload col-xs-4','id'=>'upload_file_check_word')); ?>
		<a><span id="file" class="btn-lg input-file noradius cur-point btn-nocolor">
			<i class="fa fa-upload fa-1x"></i> Click to choose import file
		</span></a>
		<?php //echo $form->file('file_name',array()); ?>
		<?php echo $form->input('file_name', array('id'=>'file_name','label'=>'','type' => 'file','required'=>'required'));?>
		<?php echo $form->submit('Upload',array('name'=>'upload','class'=>'btn btn-lg noradius btn-nocolor','id'=>'sb_upload'));?>
		<?php echo $form->end();?>
	</div>
	
	<div class="row uploadcontent ac mt40">
	
	<?php echo $form->create('MAvoidanceWord',array('class'=>'formfileupload col-xs-4','id'=>'input_text')); ?>
	
	<?php echo $form->input(utf8_encode('textarea'), array('class'=>'form-control noradius','label'=>'','rows' => '8', 'cols' => '5','required'=>'required')); ?>
		
	<?php echo $form->submit('Check',array('name'=>'check','escape'=>false,'class'=>'btn btn-lg noradius btn-nocolor mt10')); ?>
	<?php echo $form->end();?>
	
	<?php 
		if(!empty($view_result))
		{
			echo $form->create('MAvoidanceWord',array('class'=>'formfileupload col-xs-4','id'=>'text_result'));
			echo $form->input(utf8_encode('textarea'), array('value'=>$view_result,'name'=>'textarea_results','class'=>'form-control noradius mt20','label'=>'','rows' => '8', 'cols' => '5'));
			echo $form->end();
		}
	?>
	
	</div>
	
</div>
